package com.maxd.modules.selfshop.merchants.service;

import com.maxd.error.Result;
import com.maxd.modules.selfshop.merchants.entity.SelfMargin;

public interface SelfMarginService {

    //列表
    Result findAll(Integer page, Integer size, String storeName);

    //商家端列表
    Result storeList(Integer page, Integer size, Long storeId);

    //查询
    Result findOne(Long id);

    //删除
    Result delete(Long id);

    //添加
    Result saveBody(SelfMargin entity);

    //修改
    Result updateBody(SelfMargin entity);

    //保证金缴纳选项
    Result marginList();

    //保证金统计
    Result income(String data, int way);

    //保证金退款
    Result refundMargin(Long orderId);

}
